package com.fdb.efp.nls.api.rest;

import com.fdb.basic.framework.core.constant.ResponseData;
import com.fdb.basic.framework.web.controller.AbstractController;
import com.fdb.cdp.pboc.service.facade.QueryReportService;
import com.fdb.cdp.pboc.service.vo.QueryReportVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 
  * TODO
  * @author wanglihua
  * @since 2019年3月13日 下午7:39:13
  * @version 1.0
 */

@RestController
@RequestMapping("/api")
public class QueryReportController extends AbstractController {
	
	@Autowired
	@Qualifier("queryReportService")
	private QueryReportService queryReportService;
	
	@PostMapping(value = "/query/report/infos")
	public @ResponseBody
    ResponseData<List<QueryReportVO>> queryAllOwner(@RequestBody QueryReportVO vo) throws Exception {
		List<QueryReportVO> outputVo = queryReportService.queryAllOwner(vo);
		return getResponseData(outputVo);

	}
}
